package com.waijiaojun.tpo.utils;

/**
 * Created by Peter on 2017/11/27.
 */
public class SmsCodeUtil {
    /**
     *
     * @return 4位短信验证码
     */
    public static String genSmsCode() {
        int code = (int) ((Math.random() * 9 + 1) * 1000);
        String c = code + "";
        return c;
    }
}
